package com.aaa.member.controller;

import com.aaa.member.entity.IntegrationHistory;
import com.aaa.member.service.IntegrationHistoryService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 会员积分历史表(IntegrationHistory)表控制层
 *
 * @author makejava
 * @since 2020-11-21 14:14:20
 */
@RestController
@RequestMapping("integrationHistory")
public class IntegrationHistoryController {
    /**
     * 服务对象
     */
    @Resource
    private IntegrationHistoryService integrationHistoryService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public IntegrationHistory selectOne(Long id) {
        return this.integrationHistoryService.queryById(id);
    }

}